Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amplitude/analytics-types

Package Overview
Dependencies
Maintainers
19
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplitude/analytics-types

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
19
Created

What is @amplitude/analytics-types?

@amplitude/analytics-types is a TypeScript package that provides type definitions for Amplitude's analytics library. It helps developers integrate Amplitude's analytics capabilities into their TypeScript projects by providing type safety and autocompletion features.

What are @amplitude/analytics-types's main functionalities?

Event Tracking

This feature allows you to define and track events with specific properties. The type definitions ensure that the event object adheres to the expected structure.

import { Event } from '@amplitude/analytics-types';

const event: Event = {
  event_type: 'user_signup',
  user_id: 'user_123',
  event_properties: {
    plan: 'premium'
  }
};

User Identification

This feature allows you to identify users and set their properties. The type definitions help ensure that the user identification object is correctly structured.

import { Identify } from '@amplitude/analytics-types';

const identify: Identify = {
  user_id: 'user_123',
  user_properties: {
    $set: {
      email: 'user@example.com',
      plan: 'premium'
    }
  }
};

Group Identification

This feature allows you to identify groups and set their properties. The type definitions ensure that the group identification object adheres to the expected structure.

import { GroupIdentify } from '@amplitude/analytics-types';

const groupIdentify: GroupIdentify = {
  group_type: 'company',
  group_name: 'company_123',
  group_properties: {
    $set: {
      industry: 'tech'
    }
  }
};

Other packages similar to @amplitude/analytics-types

FAQs

Package last updated on 17 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc